package com.example.myxm;

import android.app.Application;

import com.example.myxm.db.MyDBHelper;

public class App extends Application {

    private static final String TAG = "App";
    private static App instance;
    private MyDBHelper dbHelper;

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        dbHelper = new MyDBHelper(this);

    }

    public static App getInstance() {
        return instance;
    }

    public MyDBHelper getDbHelper() {
        return dbHelper;
    }

    public static MyDBHelper getDbHelperStatic() {
        return getInstance().getDbHelper();
    }
}

